package com.sjcq.demoexample.service.imp;

import com.sjcq.demoexample.entity.User;
import com.sjcq.demoexample.mapper.UserMapper;
import com.sjcq.demoexample.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImp implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String username) {
        return userMapper.login(username);
    }
}
